package com.xhl.consul.tool.controller;

import com.commons.tools.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author CazCen
 * @Date 2021/11/26 13:21
 */
@Api(tags = "网关测试")
@RestController
@RequestMapping("/test/gate")
@Slf4j
public class GateWayController {

    @PostMapping("/one")
    @ApiOperation("网关测试One")
    public Result testGateOne(){
        log.info("网关转发过来了");
        return Result.ok();
    }
}
